﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Reflection;
using System.IO;

namespace FezLogForSns
{
	static class Program
	{
        public static AppConfig Config { get; private set; }

        public static string BasePath { get; private set; }

		/// <summary>
		/// アプリケーションのメイン エントリ ポイントです。
		/// </summary>
		[STAThread]
        static void Main(string[] files)
		{
            Assembly myAssembly = Assembly.GetEntryAssembly();
            BasePath = Path.GetDirectoryName(myAssembly.Location);

            Config = new AppConfig();

            if (files.Length == 0)
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new MainForm());
            }
            else
            {
                MainForm form = new MainForm();
                form.runConvert(files);
            }
        }
	}
}
